class Animal:
    def __init__(self, sex):
        self.sex = sex


class Mammal(Animal):
    def __init__(self, category, sex):
        self.category = category
        super(Mammal, self).__init__(sex)


class Dog(Mammal):
    def __init__(self, name, action, sex, category):
        super(Dog, self).__init__(category, sex)
        print(f'{name} is {action}ning to me '
              f'and it is a {self.sex} {self.category}')


haha = Dog("haha", "run", "male", "mammal")